User location tracking

ABSTRACT

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for receiving information from a remote system comprising one or more time periods during which a location of the client device can be tracked and monitoring the location of the client device during each of the time periods by obtaining a plurality of location coordinates from the client device during the time period and persistently storing the location coordinates on the client device.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of, and claims priority to, pending U.S. patent application Ser. No. 14/251,098, filed on Apr. 11, 2014, entitled “User Location Tracking,” the disclosure of which is incorporated herein by reference in its entirety.

BACKGROUND

This specification relates to user task management and user task progress and location tracking Task management is the process of managing tasks throughout their lifecycle.

Typical project management software can manage estimation and planning, scheduling, cost control and budget for tasks within a project. Mobile device tracking refers to attaining the current geographic location of the mobile device by receiving location coordinates from the device.

SUMMARY

In general, one aspect of the subject matter described in this specification can be embodied in methods that include the actions of assigning a respective task to each user of a plurality of users, the task having a schedule indicating one or more scheduled times when the user should be located at a respective geographic location for the scheduled time; sending respective information to one or more client devices, wherein each client device is associated with a different one of the users and wherein the information comprises the geographic locations indicated by the schedule for the task assigned to the user, wherein the client device is configured to track locations of the client device; receiving tracked locations from a plurality of the client devices and monitoring the tracked locations over time; determining a respective task progress for each of a plurality of first users based on monitoring; and modifying the respective task assigned to one or more second users based on the respective task progresses. Other embodiments of this aspect include corresponding systems, apparatus, and computer programs.

These and other aspects can optionally include one or more of the following features. Determining the respective task progress for a particular user can comprise determining based on one or more of the tracked locations whether the particular user is located in a geographic location indicated by the schedule of the task assigned to the particular user at a scheduled time corresponding to a current time and, based thereon, determining the respective task progress for the particular user. Determining the respective task progress for a particular user can also comprise predicting an arrival time of the particular user to a geographic location indicated by the schedule of the task assigned to the particular user based on the tracked locations and, based thereon, determining the respective task progress for the particular user. Determining the respective task progress for a particular user can also comprise determining based on information received from the client device of the particular user is a degree of completion of the task assigned to the particular user and, based thereon, determining the respective task progress for the particular user. The task assigned to the particular user can comprise one or more milestones and the information received from the client device of the particular user is an indication of which milestones have been completed. Modifying the respective task assigned to a particular user can comprise modifying the schedule of the task assigned to the particular user or assigning a new task to the particular user. Modifying the respective task assigned to one or more of the users based on the respective task progresses can comprise calculating a performance metric based on the task progresses; and identifying the one or more second users based on, at least, the performance metric. The aspect can further comprise identifying one or more rules for a particular task, each rule specifying a respective condition and a respective action; selecting one or more of the rules for which the respective condition is satisfied; and performing the respective action of each of the selected rules. An action can comprise one or more of the following: sending an electronic notification message to a device associated with a user, modifying the task assigned to a user, or changing the task assigned to the user. The electronic notification can be one of: an electronic mail message, a short message service message, a voice mail message, a phone call, and an application-specific message.

In general, another aspect of the subject matter described in this specification can be embodied in methods that include the actions of configuring a client device to monitor the geographic location of the client device over time; and configuring the monitoring so that the monitoring cannot be terminated by a user of the client device and that disabling of the monitoring by the user will cause the client device to be locked. Other embodiments of this aspect include corresponding systems, apparatus, and computer programs.

These and other aspects can optionally include one or more of the following features. Determine whether the user has disabled the monitoring and, based thereon, sending a notification of such to a remote system and locking the client device. The aspect can further comprise receiving information from a remote system comprising one or more time periods during which a location of a client device can be tracked; monitoring the location of the client device during each of the time periods by obtaining a plurality of location coordinates from the client device during the time period and persistently storing the location coordinates on the client device; and sending different ones of the stored location coordinates to the remote system at times when a transmitter of the client device is enabled. Receiving the plurality of location coordinates from the client device may not require a transmitter of the client device to be enabled. The aspect can further comprise detecting that the client device had been powered off and, based thereon, continuing to send different ones of the stored location coordinates to the remote system at times when a transmitter of the client device is enabled. Monitoring the location of the client device during each of the time periods by receiving a plurality of location coordinates of the client device during the time period can comprise obtaining fewer location coordinates at times when the client device is traveling in a substantially straight line or at slow speeds. Monitoring the location of the client device during each of the time periods by receiving a plurality of location coordinates of the client device during the time period can comprise determining that during a first period of time the client device is in a same location and, based thereon, combining multiple location coordinates for the first period of time into a single location coordinate. Sending different ones of the stored location coordinates to the remote system at times when a transmitter of the client device is enabled can comprise determining that throughput of a first transmitter of the client device is unacceptable; and based on the determination, sending the different ones of the stored location coordinates to the remote system using a second transmitter of the client device. A particular transmitter can be a cellular transmitter or a Wi-Fi transmitter.

In general, another aspect of the subject matter described in this specification can be embodied in methods that include the actions of configuring a client device to monitor the geographic location of the client device over time; and determining that the user has disabled the monitoring and, based thereon, sending a notification of such to a remote system and locking the client device. Other embodiments of this aspect include corresponding systems, apparatus, and computer programs.

These and other aspects can optionally include one or more of the following features. The aspect can further comprise receiving information from a remote system comprising one or more time periods during which a location of a client device can be tracked; monitoring the location of the client device during each of the time periods by obtaining a plurality of location coordinates from the client device during the time period and persistently storing the location coordinates on the client device; sending different ones of the stored location coordinates to the remote system at times when a transmitter of the client device is enabled. Receiving the plurality of location coordinates from the client device may not require a transmitter of the client device to be enabled. The aspect can further comprise detecting that the client device had been powered off and, based thereon, continuing to send different ones of the stored location coordinates to the remote system at times when a transmitter of the client device is enabled. Monitoring the location of the client device during each of the time periods by receiving a plurality of location coordinates of the client device during the time period can comprise obtaining fewer location coordinates at times when the client device is traveling in a substantially straight line or at slow speeds. Monitoring the location of the client device during each of the time periods by receiving a plurality of location coordinates of the client device during the time period can comprise determining that during a first period of time the client device is in a same location and, based thereon, combining multiple location coordinates for the first period of time into a single location coordinate. Sending different ones of the stored location coordinates to the remote system at times when a transmitter of the client device is enabled can comprise determining that throughput of a first transmitter of the client device is unacceptable; and based on the determination, sending the different ones of the stored location coordinates to the remote system using a second transmitter of the client device. A particular transmitter can be a cellular transmitter or a Wi-Fi transmitter.

Particular embodiments of the subject matter described in this specification can be implemented to realize one or more of the following advantages. The system described herein automatically tracks tasks assigned to employees and tracks employees' whereabouts in order to determine whether tasks are progressing according to schedules. When this is not the case, the system can modify or reassign tasks so that the progress of the tasks in the aggregate satisfies a performance requirement. Software installed on users' mobile devices (e.g., smart phones) can be used to track user locations and send the locations to the system for purposes of assessing users' task progressions. The software can also inform the user of their task schedule and progress.

The details of one or more embodiments of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, the drawings, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example system for task management and employee tracking.

FIG. 2A is an example user interface for displaying location data for a user.

FIG. 2B is an example user interface for displaying a user's location history.

FIG. 3 is a flowchart of an example method for managing user tasks.

FIG. 4 is a flowchart of an example method for tracking a user's location.

DETAILED DESCRIPTION

FIG. 1 illustrates an example system for task management and employee tracking. A server system 122 provides task management and employee tracking functionality. The server system 122 comprises software components and databases that can be deployed at one or more data centers 120 in one or more geographic locations, for example. The server system 122 software components comprise a location monitor 114, a task monitor 124, a rules engine 112, and end-user applications 116. The software components can comprise subcomponents that can execute on the same or on different individual data processing apparatus. The server system 122 databases comprise an event log 102, rules database 104, tasks database 106, user database 108, and device database 110. The databases can reside in one or more physical storage systems. The software components and data will be further described below.

The task monitor 124 is a software component that monitors the progress of each task assigned to a user (e.g., employee, contractor, subcontractor, client, etc.) of the server system 122. Task definitions are stored in tasks database 106. Tasks can have one or more of the properties in TABLE 1. Other task properties are possible.

TABLE 1 Task Property Description Name The name of the task. Description A description of the task and what it entails. Priority The task priority: critical, medium, low, or none. State The state of task progress based on milestone completion: completed, on track, ahead, behind, delinquent, or inactive. User(s) or User The names of users or types of users than can be assigned the task. For Type(s) example, the task can be assigned to users in a given company department, having a given job description, residing in a given geographic location, residing in a given time zone, having schedule availability, having a specific skill set, having a specific performance rating, or having a required license or credential. Time Limit or End The estimated time for completing the task or a date by which the task must be Date complete. Travel Whether user travel is required. Milestone A schedule for completing milestones required by the task. Each milestone can Schedule define a goal that should be accomplished by the schedule date and time of the milestone. For example, the goal could be a specific work product deliverable, a number of hours billed, or a geographic location that the user must be located in. Milestone The completion status of each milestone. Completion Billing Billing arrangements for the task such as user billing rate(s), customer billing information arrangements (e.g., fixed fee, capped, hourly), and billing rate tiers. License State or federal licenses required by the user in order to perform the task. Requirements State or Federal State or federal rules that must be followed by the user performing the task. Rules

Information for each user of the system is stored in the user database 108, including what tasks, if any, have been assigned to the user. The properties in TABLE 2 can be stored in the user database 108 for each user. Fewer or more user properties are possible.

TABLE 2 User Property Description Name The name of the user. Job Description A description of the user's job. Department The user's department within a company or organization. Office Location The geographic location of the user's home office. Education Any degrees held by the user. Skill(s) Any special skills the user has. License(s) Any federal or state licenses the user holds. Language(s) The languages the user speaks. Tasks(s) The names of tasks assigned to the user.

An application such as a web-based application can be provided as an end-user application 116 to allow users define and modify task and user properties through a graphical user interface, for example. The end-user applications 116 can be accessed through the network 113 by users of client devices (e.g., client device 126).

The task monitor 124 monitors the progress of milestone completion for each assigned task by processing events in the event log 102 in order to maintain the current state of each task. An event is a collection of information generated by the system or by a user based on their activities. In further implementations, an event can be generated by an external system such as, for example, an employee time card system which tracks when users clock in and out or an employee telephone usage tracking system. The system 122 stores events in the event log 102. Each event can have two or more of the properties in TABLE 3. Other event properties are possible.

TABLE 3 Event Property Description Time and Date The time and date that the event was generated. Source The identity of the user or system component that caused the event to be generated. User The identity of the user that the event pertains to. This is an optional property. Task The task the event pertains to. This is an optional property. Milestone The milestone of the task that the event pertains to. This is an optional property. Type The type of event such as, for example, a user location event, a milestone status event, a device access event, etc. Other types of events are possible. (User geographic location tracking is described further below.) Data Data for the event that depends on the event type. For example, user location event data will be the geographic location of the user, milestone status event data will indicate whether a milestone is completed, in progress, or late. Other types of data are possible.

The location monitor 114 receives location data from portable client devices through one or more data communication networks 113 such as the Internet, for example. The client devices (e.g., 128, 118, 122, 126, and 124) are data processing apparatus such as, for instance, smart phones, tablet computers, smart watches, smart glasses, laptop and portable computers, personal computers, and other data processing apparatus. Data describing devices assigned to users is stored in device database 110. The data can include the type of device, its operating system, its Internet Protocol address, the owner of the device, and so on. The client devices can be configured to track their geographic location over time and send location updates through the network 113 to the location monitor 114. (Client device software components for location tracking are described further below.) The location monitor 114 in turn generates user location events which are inserted into the event log. For example, a user location event could contain the following information:

Time and Date: 2:23 PM, Mar. 6, 2014

Source: Location Monitor

User: Frederick Dean

Type: User Location Event

Data: 3987 Oak Street heading South West at 32 miles per hour.

The location information received from a client device will comprise a timestamp and a location of the client device at the time corresponding to the time stamp. The location information can be in the form of a street address, latitude and longitude coordinates, or another form. In some implementations, the location information received from the client device includes the compass heading and speed of travel. In other implementations, the location monitor 114 can deduce the compass heading and speed of travel by analyzing location information received from a particular client device over time.

In further implementations, if a task requires travel and a task milestone indicates a geographic location that the user must be in at a given time, the location monitor 114 can predict the time that the user will arrive at the location and generate an event. The location monitor 114 can identify such milestones in the task database 106 and find corresponding users from the user database 108 that have been assigned those tasks. Location information received from client devices of the users can then be used to generate predicted arrival times. By way of illustration, such an event comprise the following information:

Time and Date: 2:24 PM, Mar. 6, 2014

Source: Location Monitor

User: Frederick Dean

Task: Package Delivery

Milestone: Arrive at 3987 Oak Street, Pasadena, Calif. 91105.

Type: Predicted User Arrival

Data: 3:47 PM.

Task and milestone information for a user can be sent to the user's client device by the task monitor 124. This allows the client device to keep the user up-to-date on task progress as well as allowing the user to indicate when a milestone is complete (for milestones that do not indicate completion by the user being located in a specific geographic location). For example, a graphical user interface (or other user interface) on the client device can provide an input method for the user to indicate that a milestone is complete. The client device then generates an event, such as the following, and sends the event to the server system 122 for insertion in the event log 102:

Time and Date: 11:35 PM, Mar. 2, 2014

Source: Mike Towers

User: Mike Towers

Task: Project Alpha

Milestone: Code and test rate exchange software module.

Type: Milestone status event

Data: Milestone completed.

The task monitor 124 monitors the progress of milestone completion for each assigned task by processing user location events, predicted user arrival events, and milestone completion events in the event log 102 in order to maintain the current completion state of each milestone and the current state (e.g., completed, on track, ahead, behind, delinquent or inactive) of each task assigned to a user. A “completed” task is a task where all of the milestones have been completed. An “on track” task is a task that is not completed but where the user has not fallen behind the milestone completion schedule. An “ahead” task is a task where the user has completed the most recent milestone ahead of schedule. A “behind” task is a task where the user has failed to complete the currently due milestone on schedule. A “delinquent” task is one where the user has failed to complete more than one milestone on schedule, including the most recent milestone. Finally, an “inactive” task is one in which a user has indicated that the task is not to be tracked. Other types of task states are possible. The task monitor 124 generates events in the event log 102 when task state changes. For example, the task monitor 124 can generate the following event indicating that Mike Towers has completed the task Project Alfa (assuming that Code and test rate exchange software module milestone was the last milestone):

Time and Date: 11:35 PM, Mar. 2, 2014

Source: Task Monitor

User: Mike Towers

Task: Project Alpha

Type: Task State Event

Data: Completed

The task monitor 124 can also calculate measures of the overall system performance based on that status of all active events in the system and generate events for these measures in the event log 102. For example, performance measure M1 is calculated as follows:

${M\; 1} = \frac{O + A}{T}$

where O is the number of on track tasks, A is the number of ahead tasks, and T is the total number of active tasks in the system. Performance measure M2 is calculated as follows:

${M\; 2} = \frac{B + D}{T}$

Where B is the number of behind tasks, D is the number of delinquent tasks. Yet another measure could be the average of M1 or M2 over time:

${M\; 3} = \frac{\sum\limits_{i = 1}^{n}\; {M\; 1_{i}}}{n}$

User-defined rules can be triggered based on the performance measure events in the event log 102 and take action to improve the performance of the system by changing and/or redistributing tasks among users.

The rules engine 112 is the heart of the system and drives automatic task management through user-defined rules that perform actions automatically when the rules' conditions are satisfied. A rule can have the properties listed in TABLE 4, however other rule properties are possible. Rules are stored in the rule database 104. An application such as a web-based application can be provided as an end-user application 116 and offer the ability to define and modify rules through a graphical user interface, for example.

TABLE 4 Rule Property Description Name The name of the rule. Description A description of the rule and what it entails. Task(s) The task name or names to which the rule applies. Can be a wildcard which means the rule applies to any task. This is an optional property. Milestone(s) The task milestone(s) to which the rule applies. Can be a wildcard which means the rule applies to any milestone. This is an optional property. Condition(s) A set of one or more Boolean expressions that must be satisfied in order for the rule action(s) to be performed. Action(s) A set of one or more actions to perform when the rule conditions are satisfied. Rules can reassign tasks based on performance of system or a user, for example.

In some implementations, the rules engine 112 scans the event log 102 for new events—events that it has not processed previously. For each new event, the rules engine 112 then identifies any rules in the rules database 104 that have a task, or task and milestone, that matches the new event's corresponding task or task and milestone. If there is a match, the rules engine 112 evaluates each identified rule's conditions to determine if they are satisfied. A condition is a set of one or more Boolean expression that, if evaluate to true, will cause the rules engine 112 to perform the associated action(s). The Boolean expression can refer to intrinsic data such as properties of tasks, users, and events. In addition, the Boolean expression can refer to extrinsic data such as the time of day, weather conditions in a given location, news reports, and so on.

For example, when satisfied the following rule notifies a dispatcher that the user assigned to the task is 30 minutes away from arriving at a given geographic location:

Name: Package Notification

Description: Notify dispatcher when employee is near drop off.

Task: Package Delivery

Milestone: Arrive at 3987 Oak Street, Pasadena, Calif. 91105.

Condition: Task.Predicted_arrival_time IS current_time+30 minutes

Action: NotifyDispatcher(“Task.user is 30 minutes away from delivering package.”)

The intrinsic data used in the condition of the above rule is the predicted arrival time for the task (Task.Predicted_arrival_time) which is determined using a Predicted User Arrival event from the event log 102 for the task and the user assigned to the task, and the identity of the user assigned to the task (Task.user) which is stored in the user database 108. A function NotifyDispatcher is defined by the system 122 and causes a message to be sent to the dispatcher (e.g., another user) associated with the task. The message can be in the form of a text message, an electronic mail message, a phone call, or other type of message.

By way of a further illustration, performance measurement events in the event log 102 can trigger rules that modify or reassign tasks in order to meet a system wide performance goal (e.g., M1, M2 or M3).

Name: Reassign Task

Description: Reassign a delinquent task to another user.

Task: Software Development

Milestone: Implement User API

Condition: System.M1<0.8 AND Task.state IS “delinquent”

Action: ReassignTask(Task, Task.user)

The above rule reassigns delinquent Software Development tasks when the system performance drops below 80%. The intrinsic data used in the condition of the above rule is the system performance measure M1 (System.M1) which is obtained from the event log 102, and the task state (Task.state) for the Software Development task assigned to the user (Task.user) which can be obtained from the user database 108. The ReassignTask function is defined by the system 122 and reassigns the task from the assigned user to a new user.

By way of a further example, the following rule modifies a milestone date for a task whose state is behind to give the user more time to complete the milestone:

Name: Push out behind milestone

Description: Reassign a delinquent task to another user.

Task: Software Development

Milestone: Implement User API

Condition: Task.state IS “behind”

Action: PushOutMilestone(Milestone, Task.user, 2 weeks)

The intrinsic data used in the condition of the above rule is the task state (Task.state) for the Software Development task assigned to the user (Task.user) which can be obtained from the user database 108. The PushOutMilestone function is defined by the system 122 and moves the milestone completion data ahead two weeks for the given user and task. Other types of rules are possible.

As described above, user location tracking is performed by client devices (e.g., 128, 118, 122, and 124). A client device (e.g., client device 118) has software components installed on it for managing tasks assigned to the user of the client device and tracking the user's (i.e., the device's) location. The task manager 118 a component provides a graphical user interface on the client device which allows the user to review milestone deliverables and schedules for their assigned tasks and can also automatically remind the user in advance when a scheduled milestone deadline is approaching. The task manager 118 a also provides a graphical user interface (or other interface such as natural language) that allows a user to send a milestone status event to the server system 122 which will be entered into the event log by the task monitor 124. For example, the user can indicate through the user interface that a milestone has been completed or that a milestone was missed (and provide a reason).

Location tracker 118 b is a software component that executes on the client device and that records the current geographic location information of the client device at different times and persistently stores the locations in data store 118 d which retains its data across client device power cycles. In some implementations, the location tracker 118 b treats the data store 118 d as a stack with the most recently obtained geographic location information being “pushed” on top of the stack. In addition to location coordinates, the current geographical information can include the compass heading and speed of travel of the client device. In some implementations, the task manager 118 a receives from the location monitor 114 a set of one or more time periods during which the location of the client device can be tracked and the location tracker 118 b only tracks location during those times (e.g., working hours). The location tracker 118 b obtains the current geographic location from an operating system (OS) service of the client device. The OS obtains the current location using Global Positioning System (GPS) or base station triangulation. Location information can be obtained from the OS even if the client device is in “airplane mode” since only transmit functionality of the radios on the client device are disabled, not the receive functionality. When transmitters on the client device are disabled, the location tracker 118 b continues to obtain location data and stores it in data store 118 d.

Network monitor 118 c is a software component that executes on the client device and that is responsible for sending location information to the location monitor 114. When a transmitter is enabled on the client device the network monitor 118 c will “pop” geographic location information off of the location stack in the data store 118 d send the location information to the location monitor 114. The network monitor 118 c monitors the performance of the transmitter used to transmit location information to the location monitor 114 and, if the performance is not acceptable either because the data rate is too slow or the channel has become unreliable, the network monitor 118 c can use a different transmitter to transmit the location data. For example, if the cellular transmitter is performing poorly, the location information can be sent over the Wi-Fi transmitter (or vice versa).

The location tracker 118 b utilize several parameters for its operation. The parameters are described in TABLE 5 below.

TABLE 5 Parameter Description UPDATE_INTERVAL A time threshold measured in seconds which is compared against a time of the location at the top of the location stack in the data store 118d. DISTANCE_INTERVAL A distance threshold measured in meters which is compared against the location at the top of the location stack in the data store 118d. ACCEPTABLE_GPS_ACCURACY A minimum accuracy threshold measured in meters. ACCEPTABLE_NETWORK_ACCURACY An minimum accuracy threshold measured in meters. DISTANCE_BETWEEN_HITS A variable measured in meters containing the distance between the current location and the location on the top of the stack. BEARING_BETWEEN_HITS A variable measured in degrees on a 360° scale containing the difference of magnetic bearing (or direction) between current location and the location on the top of the stack. TIME_ELAPSED_BETWEEN_HITS A variable measured in seconds containing the difference between the current location and the location on the top of the stack. CURRENT_SPEED A variable measured in meters/second containing the speed of current location.

In some implementations, the location tracker 118 b will discard location information obtained from the OS that does not satisfy accuracy thresholds. GPS locations having accuracies that do not exceed the ACCEPTABLE_GPS_ACCURACY are discarded (i.e., they are not stored in the data store 118 d. Likewise, Wi-Fi triangulation locations having accuracies that do not exceed the ACCEPTABLE_NETWORK_ACCURACY are also discarded.

If a given geographic location has acceptable accuracy, then the location tracker 118 b will determine whether or not the location should be pushed onto the location stack in the data store 118 d based on an algorithm that decreases the amount of data transferred from the client device to the location monitor 114. The algorithm reduces the use of client device's transmitter (and therefore increases battery life of the client device) and provides the location monitor 114 with an easy to visualize path of travel by omitting redundant and unneeded location information. Based on the CURRENT_SPEED of the client device, the location tracker 118 b performs operations in accordance with TABLE 6 below for location information obtained from the OS.

TABLE 6 CURRENT_SPEED Action Taken for Newly Obtained Location Information 0 Miles per hour (MPH) If the UPDATE_INTERVAL has past, the new location information is pushed on the location stack in the data store 118d, otherwise the new location information is discarded. Greater than 0 MPH but less If any of the following conditions are true, the new location than or equal to walking information is pushed on the location stack in the data store 118d, speed otherwise the new location information is discarded: The DISTANCE_INTERVAL threshold been passed; The UPDATE_INTERVAL has elapsed; or The BEARING_BETWEEN_HITS exceeded the threshold of the last location sent to the location monitor 114 and the distance traveled since the last sent location is greater than the DISTANCE_INTERVAL. Greater than walking speed If any of the following conditions are true, the new location information is pushed on the location stack in the data store 118d, otherwise the new location information is discarded: The bearing of the current location has exceeded the BEARING_BETWEEN_HITS; or The UPDATE_INTERVAL has elapsed.

In some implementations, the location tracker 118 b is a supervisory or other special process in the mobile device OS that cannot be terminated by users of the device. For example, on mobile devices running the Android operating system, the location tracker 118 b is programmed as a persistent foreground service which runs at a higher priority than normal application processes. This prevents the operating system from randomly killing the process when the device needs to acquire more resources.

In further implementations, the location tracker 118 b is programmed to lock the client device if the user disables the location tracker 118 b. The location tracker 118 b can also send a notification message to location monitor 114 indicating that the user has disabled location tracking. This can be recorded as an event in the event log 102 so that rules can perform actions on the occurrence of such events. For instance, the location tracker 118 b can utilize an Android permission “device administrator” which grants it higher privileges than other applications and the ability to lock the client device, change its password, and erase the client device. In addition, the “device administrator” permission permits the location tracker 118 b to detect when a user attempts to disable the location tracker 118 b.

FIG. 2A is an example user interface 200 for displaying location data for a user. The user interface 200 can be provided by an end-user application 116 that determines a user's current location by finding the most recent location event for the user's client device in the event log 102. The location event can include the client device's current location as of a given time and date, the bearing, and the speed of travel of the client device. This information can be plotted on the user interface 200. For example, the arrow 204 indicates the mobile device's current location with the compass bearing reflected in the direction of the arrow 204. A pop-up window 202 displays detailed information such as, for instance, the user name, the date and time of the location event, the bearing, a measure of accuracy of the location information, the remaining battery level for the client device, and so on. The user interface 200 can display the location information for more than one client device including, for example, the location information for client devices of users assigned a particular task. Other ways of selecting location information to display in the user interface 200 are possible.

FIG. 2B is an example user interface 205 for displaying a user's location history over time. The user interface 205 can be provided by an end-user application 116 that determines a user's locations over time by finding the location events for the user's client device in the event log 102. Location events can plotted as arrows on a geographic map such as the map displayed in user interface 205. By way of illustration, the rectangle 206 indicates the various locations of a user's client device for a specific period of time (e.g., 2:00-2:30 PM on Jan. 2, 2014). The user interface 205 can display the location information for more than one client device including, for example, the location information for client devices of users assigned a particular task. Other ways of selecting location information to display in the user interface 200 are possible.

FIG. 3 is a flowchart of an example method for managing user tasks. The method can be implemented using one or more data processing apparatus such as, for example, data processing apparatus that are part of the data center 120. The method begins by assigning tasks to users (302). A task can be assigned to a user by an end-user application 116 that allows changing the assigned tasks property of a user record or by a rule action (e.g., the rules engine 112) that assigns a task to a user. Geographic location information in the form of, for example, a milestone schedule specifying one or more locations that the user must be located in at respective times set forth by the schedule is sent by, for example, the task monitor 124 to the client devices (304). Tracked locations are then received from the client devices and are monitored over time (306) by the location monitor 114, for instance. One or more of the assigned tasks are then modified (e.g., by the rules engine 112) based on the event log 102 information that reflects the monitored locations.

FIG. 4 is a flowchart of an example method for tracking a user's location. The method can be implemented using one or more data processing apparatus such as, for example, client device 118. The method begins by configuring a client device, e.g., by the location tracker 118 b, to monitor the geographic location of the client device over time (402). The location monitoring is configured so that it cannot be terminated by a user of the client device and that disabling of the monitoring by the user will cause the client device to be locked (404). Information is received from a remote system, e.g., the server system 122, by the client device (e.g., by the task manager 118 a) indicating one or more time periods during which the location of the client device can be tracked (406). The location of the client device is monitored during each of the time periods by, for example, the location tracker 118 b and the location information is persistently stored on the client device in data store 118 d, for instance (408). The stored location data is then sent to the remote system at different times (e.g., by the location tracker 118 b) when a transmitter on the client device is enabled.

Embodiments of the subject matter and the operations described in this specification can be implemented in digital electronic circuitry, or in computer software, firmware, or hardware, including the structures disclosed in this specification and their structural equivalents, or in combinations of one or more of them. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, encoded on computer storage medium for execution by, or to control the operation of, data processing apparatus. Alternatively or in addition, the program instructions can be encoded on an artificially-generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to suitable receiver apparatus for execution by a data processing apparatus. A computer storage medium can be, or be included in, a computer-readable storage device, a computer-readable storage substrate, a random or serial access memory array or device, or a combination of one or more of them. Moreover, while a computer storage medium is not a propagated signal, a computer storage medium can be a source or destination of computer program instructions encoded in an artificially-generated propagated signal. The computer storage medium can also be, or be included in, one or more separate physical components or media (e.g., multiple CDs, disks, or other storage devices).

The operations described in this specification can be implemented as operations performed by a data processing apparatus on data stored on one or more computer-readable storage devices or received from other sources.

The term “data processing apparatus” encompasses all kinds of apparatus, devices, and machines for processing data, including by way of example a programmable processor, a computer, a system on a chip, or multiple ones, or combinations, of the foregoing The apparatus can include special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). The apparatus can also include, in addition to hardware, code that creates an execution environment for the computer program in question, e.g., code that constitutes processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or a combination of one or more of them. The apparatus and execution environment can realize various different computing model infrastructures, such as web services, distributed computing and grid computing infrastructures.

A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, object, or other unit suitable for use in a computing environment. A computer program may, but need not, correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language resource), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code). A computer program can be deployed to be executed on one computer or on multiple computers that are located at one site or distributed across multiple sites and interconnected by a communication network.

The processes and logic flows described in this specification can be performed by one or more programmable processors executing one or more computer programs to perform actions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, e.g., an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit).

Processors suitable for the execution of a computer program include, by way of example, both general and special purpose microprocessors, and any one or more processors of any kind of digital computer. Generally, a processor will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for performing actions in accordance with instructions and one or more memory devices for storing instructions and data. Generally, a computer will also include, or be operatively coupled to receive data from or transfer data to, or both, one or more mass storage devices for storing data, e.g., magnetic, magneto-optical disks, or optical disks. However, a computer need not have such devices. Moreover, a computer can be embedded in another device, e.g., a mobile telephone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device (e.g., a universal serial bus (USB) flash drive), to name just a few. Devices suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices; magnetic disks, e.g., internal hard disks or removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.

To provide for interaction with a user, embodiments of the subject matter described in this specification can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user and a keyboard and a pointing device, e.g., a mouse or a trackball, by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, a computer can interact with a user by sending resources to and receiving resources from a device that is used by the user; for example, by sending web pages to a web browser on a user's client device in response to requests received from the web browser.

Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front-end component, e.g., a client computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the subject matter described in this specification, or any combination of one or more such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (“LAN”) and a wide area network (“WAN”), an inter-network (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks).

The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, a server transmits data (e.g., an HTML page) to a client device (e.g., for purposes of displaying data to and receiving user input from a user interacting with the client device). Data generated at the client device (e.g., a result of the user interaction) can be received from the client device at the server.

A system of one or more computers can be configured to perform particular operations or actions by virtue of having software, firmware, hardware, or a combination of them installed on the system that in operation causes or cause the system to perform the actions. One or more computer programs can be configured to perform particular operations or actions by virtue of including instructions that, when executed by data processing apparatus, cause the apparatus to perform the actions.

While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any inventions or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.

Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In certain implementations, multitasking and parallel processing may be advantageous. 

What is claimed is:
 1. A computer-implemented method comprising: performing the following by a client device: configuring the client device to track the geographic location of the client device; tracking the location of the client device by obtaining a plurality of location coordinates of the client device over time and persistently storing the location coordinates on the client device; and detecting that a user has disabled the location tracking on the client device and, in response, locking the client device.
 2. The method of claim 1, further comprising: receiving, by the client device, information from a remote system comprising one or more time periods during which the location of the client device can be tracked.
 3. The method of claim 2 wherein tracking the location of the client device further comprises tracking, by the client device, the location of the client device by obtaining the plurality of location coordinates during the time periods.
 4. The method of claim 1, wherein detecting that the user has disabled the location tracking further comprises sending a notification of such to a remote system.
 5. The method of claim 1 wherein obtaining the plurality of location coordinates does not require a transmitter of the client device to be enabled.
 6. The method of claim 1, further comprising: sending the stored location coordinates to a remote system at times when a transmitter of the client device is enabled.
 7. The method of claim 1 wherein tracking the location of the client device by obtaining a plurality of location coordinates of the client device over time comprises: obtaining fewer location coordinates at times when the client device is traveling in a substantially straight line or at slow speeds.
 8. The method of claim 1, further comprising: determining that during a first period of time the client device is in a same location and, based thereon, combining multiple location coordinates for the first period of time into a single location coordinate.
 9. The method of claim 1 wherein configuring the client device to track the geographic location of the client device over time further comprises configuring the tracking so that the tracking cannot be terminated by the user of the client device.
 10. The method of claim 1 wherein locking the client device comprises changing a password for the client device.
 11. A system comprising: data processing apparatus programmed to perform operations comprising: configuring the client device to track the geographic location of the client device; tracking the location of the client device by obtaining a plurality of location coordinates of the client device over time and persistently storing the location coordinates on the client device; and detecting that a user has disabled the location tracking on the client device and, in response, locking the client device.
 12. The system of claim 11, wherein the operations further comprise: receiving, by the client device, information from a remote system comprising one or more time periods during which the location of the client device can be tracked.
 13. The system of claim 12 wherein tracking the location of the client device further comprises: tracking, by the client device, the location of the client device by obtaining the plurality of location coordinates during the time periods.
 14. The system of claim 11, wherein detecting that the user has disabled the location tracking further comprises sending a notification of such to a remote system.
 15. The system of claim 11 wherein obtaining the plurality of location coordinates does not require a transmitter of the client device to be enabled.
 16. The system of claim 11, wherein the operations further comprise: sending the stored location coordinates to a remote system at times when a transmitter of the client device is enabled.
 17. The system of claim 11 wherein tracking the location of the client device by obtaining a plurality of location coordinates of the client device over time comprises: obtaining fewer location coordinates at times when the client device is traveling in a substantially straight line or at slow speeds.
 18. The system of claim 11, wherein the operations further comprise: determining that during a first period of time the client device is in a same location and, based thereon, combining multiple location coordinates for the first period of time into a single location coordinate.
 19. The system of claim 11 wherein configuring the client device to track the geographic location of the client device over time further comprises configuring the tracking so that the tracking cannot be terminated by the user of the client device.
 20. The system of claim 11 wherein locking the client device comprises changing a password for the client device.
 21. A non-transitory computer-readable medium having instructions stored thereon that, when executed by data processing apparatus, cause the data processing apparatus to perform operations comprising: configuring the client device to track the geographic location of the client device; tracking the location of the client device by obtaining a plurality of location coordinates of the client device over time and persistently storing the location coordinates on the client device; and detecting that a user has disabled the location tracking on the client device and, in response, locking the client device.
 22. The computer-readable medium of claim 21, wherein the operations further comprise: receiving, by the client device, information from a remote computer-readable medium comprising one or more time periods during which the location of the client device can be tracked.
 23. The computer-readable medium of claim 22 wherein tracking the location of the client device further comprises: tracking, by the client device, the location of the client device by obtaining the plurality of location coordinates during the time periods.
 24. The computer-readable medium of claim 21, wherein detecting that the user has disabled the location tracking further comprises sending a notification of such to a remote computer-readable medium.
 25. The computer-readable medium of claim 21 wherein obtaining the plurality of location coordinates does not require a transmitter of the client device to be enabled.
 26. The computer-readable medium of claim 21, wherein the operations further comprise: sending the stored location coordinates to a remote computer-readable medium at times when a transmitter of the client device is enabled.
 27. The computer-readable medium of claim 21 wherein tracking the location of the client device by obtaining a plurality of location coordinates of the client device over time comprises: obtaining fewer location coordinates at times when the client device is traveling in a substantially straight line or at slow speeds.
 28. The computer-readable medium of claim 21, wherein the operations further comprise: determining that during a first period of time the client device is in a same location and, based thereon, combining multiple location coordinates for the first period of time into a single location coordinate.
 29. The computer-readable medium of claim 21 wherein configuring the client device to track the geographic location of the client device over time further comprises configuring the tracking so that the tracking cannot be terminated by the user of the client device.
 30. The computer-readable medium of claim 21 wherein locking the client device comprises changing a password for the client device. 